﻿using com.ruovea.utilty;
using com.ruovea.utilty.Appseting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace com.ruovea.gogs.service
{
    /// <summary>
    /// 初始化 服务 
    /// </summary>
    public class GogsService
    {
        /// <summary>
        /// 服务 初始化
        /// </summary>
        public static void Init() {
            var obj = (new { GogsDb = new DbConfig { ConnectionString = "数据库链接字符串", DbType = "数据库类型" } }).ToJson();
            Appsettings.append(obj.Substring(1,obj.Length-1));
        }
    }
}
